package org.example.demo7.web;

/**
 * @author zyp
 * @version 1.0
 */
import jakarta.servlet.ServletException;
import jakarta.servlet.http.*;
import jakarta.servlet.annotation.WebServlet;

import java.io.IOException;
@WebServlet("/SelectUserServlet")
public class SelectUserServlet  extends HttpServlet {
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//        1.接受用户名
        String username = request.getParameter("userName");
//        2.调用service查询用户对象
        boolean flag = true;
//        3.响应标记
        response.getWriter().write(" "+flag);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

    }
}

